﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Pages/Inicio.master" AutoEventWireup="false" CodeFile="CajaPagosListado.aspx.vb" Inherits="Pages_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:UpdatePanel ID="uppCobros" runat="server">
        <ContentTemplate>
            <div class="estandardiv" >
            <div class="subtittle">Lista de Pagos</div>
            <br />
            <center>
                <table style="width:750px">
                <tr>
                    <td class="textright">Modalidad Pago </td>
                    <td class="textleft">
                        <asp:DropDownList ID="ddlbFormaPago" runat="server" CssClass="textleft" Width="130px">
                        </asp:DropDownList>
                    </td>
                    <td class="textright" >Comprobante</td>
                    <td class="textleft">
                        <asp:DropDownList ID="ddlbComprobante" runat="server" CssClass="textleft" Width="110px">
                        </asp:DropDownList>
                    </td>
                    <td class="textright">Nro. Comprobante</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbComprobante" runat="server" CssClass="textleft" Width="145px"></asp:TextBox>
                    </td>
                    <td class="textleft"><asp:ImageButton ID="ibtnBuscar" runat="server" ImageUrl="~/Images/texto/btnBuscar.png" /></td>
                 </tr>
                 <tr>
                    <td class="textright">Cliente</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbCliente" runat="server" CssClass="textleft" Width="120px"></asp:TextBox>
                     </td>
                     <td class="textright">Orden</td>
                     <td class="textleft">
                         <asp:TextBox ID="txbOrden" runat="server" CssClass="textleft" Width="100px"></asp:TextBox>
                     </td>
                    <td class="textright" >Fecha</td>
                    <td class="textleft">
                        <asp:TextBox ID="txbInicio" runat="server" CssClass="textleft" Width="60px"></asp:TextBox>
                        <asp:CalendarExtender ID="txbInicio_CalendarExtender" runat="server" Enabled="True" TargetControlID="txbInicio">
                        </asp:CalendarExtender>&nbsp;al
                        <asp:TextBox ID="txbFin" runat="server" CssClass="textleft" Width="60px"></asp:TextBox>
                        <asp:CalendarExtender ID="txbFin_CalendarExtender" runat="server" Enabled="True" TargetControlID="txbFin">
                        </asp:CalendarExtender>
                    </td>
                    <td class="textleft">
                        <asp:ImageButton ID="ibtnPagos" runat="server" ImageUrl="~/Images/texto/btnPagos.png" />
                    </td>
                 </tr>
              </table>
            </center>
            <br />
            <asp:GridView ID="gridPagos" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" PageSize="20" Width="95%">
                <Columns>
                    <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha" >
                            <ItemStyle Width="70px" />
                            </asp:BoundField>
                <asp:BoundField DataField="Orden" HeaderText="Orden" SortExpression="Orden" >
                        <ItemStyle Width="50px" />
                    </asp:BoundField>
                            <asp:BoundField DataField="Cliente" HeaderText="Cliente" SortExpression="Cliente">
                            <ItemStyle CssClass="textleft" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Modalidad" HeaderText="Modalidad" SortExpression="Modalidad">
                            <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Comprobante" HeaderText="Comprobante" SortExpression="Comprobante">
                    <ItemStyle Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Numero" HeaderText="Numero" SortExpression="Numero">
                    <ItemStyle Width="100px" />
                    </asp:BoundField>
                            <asp:BoundField DataField="Monto" HeaderText="Monto" SortExpression="Monto">
                            <ItemStyle CssClass="textright" Width="80px" />
                            </asp:BoundField>
                        </Columns>
                        <EmptyDataTemplate>
                            No existen registros
                  </EmptyDataTemplate>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
            <br />
            <div class="textleft"><asp:Label ID="LblTotal" runat="server" Text="Total: 0 Registros."></asp:Label></div>
            <br />
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

